package com.cqemme.activitiservice.feign;

import com.cqemme.activitiservice.feign.fallback.JwtFallback;
import com.cqemme.comm.po.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Jwt服务-解析token
 *
 * @author daibin
 */
@FeignClient(value = "jwt-service", fallback = JwtFallback.class)
public interface JwtFeign {

    /**
     * 解析token
     *
     * @param authorization
     * @return
     */
    @RequestMapping(value = "/inside/decodeAuthorization", method = RequestMethod.GET)
    Result decodeAuthorization(@RequestParam String authorization );

}
